import { Button as AntdButton } from "antd";
import styled from "styled-components";

// 继承 antd 的 Button 样式并添加自定义样式
export const StyledButton = styled(AntdButton)`
  width: 180px;
  height: 52px;
  padding: 12px 20px 12px 20px;
  gap: 8px;
  border-radius: 32px;
  font-family: Roboto;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
  &:hover {
    background-color: #f0f0f0 !important;
    border-color: #555 !important;
    color: #555 !important;
    cursor: pointer;
  }
`;

//  cancel
export const StyledCancel = styled(StyledButton)`
  width: 179px;
  height: 51px;
  border: 1px solid #7a6145;
  color: #7a6145;
  background-color: #fff;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
  &:hover {
    border: 1px solid #7a6145 !important;
    color: #7a6145 !important;
    background-color: #fff !important;
  }
`;

// agree next
export const StyledAgree = styled(StyledButton)`
  color: #ffffff;
  background-color: #998065;
  border: 1px solid;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
  &:hover {
    color: #ffffff !important;
    background-color: #998065 !important;
    border: 1px solid !important;
  }
`;

// delete next
export const StyledDel = styled(StyledAgree)`
  &:hover {
    background-color: #c02020 !important;
  }
`;

// add a new something button
export const StyledAddBtn = styled(StyledAgree)`
  font-size: 16px;
  line-height: 24px;
  width: auto;
  height: auto;
  padding: 8px 20px;
`;

// add a new something button-white
export const StyledWhiteBtn = styled(StyledCancel)`
  font-size: 16px;
  line-height: 24px;
  width: auto;
  height: auto;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #998065;
  color: #7a6145;
`;
